<?php
function page_constant($key)
{	
	global $tpl;
	$pagetitle=array('reg'=>"用户注册");
	$page=array('title'=>$pagetitle[$key]);
	$tpl->assign("page",$page);
}
/*
$tpl->assign("contacts", array(array("phone" => "1", "fax" => "2", "cell" => "3"),
	  array("phone" => "555-4444", "fax" => "555-3333", "cell" => "760-1234")));

$tpl->assign("option_values", array("NY","NE","KS","IA","OK","TX"));
$tpl->assign("option_output", array("New York","Nebraska","Kansas","Iowa","Oklahoma","Texas"));
$tpl->assign("option_selected", "NE");

//$tpl->display('index.tpl');


$uid=new UID();
$data=array('id'=>'','username'=>'72df','password'=>'qwertty','email'=>'cdsc','phone'=>'cdsaca','realname'=>'cdcd','invitecode'=>'cdscd','time'=>'now');
$uid->insert('user',$data);

echo "</br>";

//$dsql->ExecuteNoneQuery("insert into user(id,username,password,email,phone,realname,invitecode) values('','sdf','qwertty','cdsc','cdsaca','cdcd','cdscd')");
/*
$dsql->SetQuery("select * from user");
$dsql->Execute();
while($row = $dsql->GetArray())
    {
	var_dump($row);
	}

*/

?>